// 自动生成模板Article
package autocode

import (
	"github.com/flipped-aurora/gin-vue-admin/server/global"
)

// Article 结构体
// 如果含有time.Time 请自行import time包
type Article struct {
      global.GVA_MODEL
      CreatedBy  *int `json:"createdBy" form:"createdBy" gorm:"column:created_by;comment:创建人;size:10;"`
      UpdatedBy  *int `json:"updatedBy" form:"updatedBy" gorm:"column:updated_by;comment:修改人;size:10;"`
      Title  string `json:"title" form:"title" gorm:"column:title;comment:标题;size:100;"`
      Content  string `json:"content" form:"content" gorm:"column:content;comment:内容;"`
      CateId  *int `json:"cateId" form:"cateId" gorm:"column:cate_id;comment:分类;size:10;"`
      AttributeId  string `json:"attributeId" form:"attributeId" gorm:"column:attribute_id;comment:标签;size:100;"`
}


// TableName Article 表名
func (Article) TableName() string {
  return "article"
}

